﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using KCL.Code.Data;

namespace KCL.Code.Business
{
    public class SizeServices
    {
        public static List<Size> GetAllSizes()
        {
            return (new SizeDAO()).GetAllSizes();
        }

        public static bool Insert(Size s)
        {
            return (new SizeDAO()).Insert(s);
        }

        public static bool Update(Size s)
        {
            s.isActive = true;
            return (new SizeDAO()).Update(s);
        }

        public static bool Delete(Size s)
        {
            return (new SizeDAO()).Delete(s);
        }
    }
}